package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteFrontDrawLog table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteFrontDrawLog"
 */

public abstract class BaseAnteFrontDrawLog  implements Serializable {
	private static final long serialVersionUID = 1L;
	public static String REF = "AnteFrontDrawLog";
	public static String PROP_IS_SURE = "IsSure";
	public static String PROP_OPERATE_TIME = "OperateTime";
	public static String PROP_SUCC_MONEY = "SuccMoney";
	public static String PROP_TOTAL_FEE = "TotalFee";
	public static String PROP_MERCHANT_ID = "MerchantId";
	public static String PROP_FILE_DESC = "fileDesc";
	public static String PROP_TOTAL_TIMES = "TotalTimes";
	public static String PROP_TOTAL_MONEY = "TotalMoney";
	public static String PROP_PATCH_ID = "PatchId";
	public static String PROP_FILE_STATE = "fileState";
	public static String PROP_SUCC_TIMES = "SuccTimes";
	public static String PROP_PAY_TIME = "PayTime";
	public static String PROP_DRAW_LOG_ID = "DrawLogId";
	public static String PROP_OPERATOR = "Operator";
	public static String PROP_FAILD_TIMES = "FaildTimes";
	public static String PROP_FAILD_MONEY = "FaildMoney";
	public static String PROP_FILE_NAME="fileName";
	public static String PROP_PROVIDER_ID="providerId"; 


	// constructors
	public BaseAnteFrontDrawLog () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteFrontDrawLog (java.lang.Integer drawLogId) {
		this.setDrawLogId(drawLogId);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteFrontDrawLog (
		java.lang.Integer drawLogId,
		java.lang.String merchantId,
		java.lang.String patchId,
		java.lang.Integer totalTimes,
		java.lang.Integer totalMoney,
		java.lang.Integer totalFee,
		java.lang.String payTime,
		java.lang.Integer isSure,
		java.lang.String operator,
		java.util.Date operateTime) {

		this.setDrawLogId(drawLogId);
		this.setMerchantId(merchantId);
		this.setPatchId(patchId);
		this.setTotalTimes(totalTimes);
		this.setTotalMoney(totalMoney);
		this.setTotalFee(totalFee);
		this.setPayTime(payTime);
		this.setIsSure(isSure);
		this.setOperator(operator);
		this.setOperateTime(operateTime);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer drawLogId;

	// fields
	private java.lang.String merchantId;
	private java.lang.String patchId;
	private java.lang.Integer totalTimes;
	private java.lang.Integer totalMoney;
	private java.lang.Integer totalFee;
	private java.lang.String payTime;
	private java.lang.Integer isSure;
	private java.lang.Integer succTimes;
	private java.lang.Integer succMoney;
	private java.lang.Integer faildTimes;
	private java.lang.Integer faildMoney;
	private java.lang.String operator;
	private java.util.Date operateTime;
	private java.lang.Integer fileState;
	private java.lang.String fileDesc;
	private java.lang.String fileName;
    private String providerId;	



	public java.lang.String getProviderId()
	{
		return providerId;
	}

	public void setProviderId(java.lang.String providerId)
	{
		this.providerId = providerId;
	}

	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="DrawLogId"
     */
	public java.lang.Integer getDrawLogId () {
		return drawLogId;
	}

	/**
	 * Set the unique identifier of this class
	 * @param drawLogId the new ID
	 */
	public void setDrawLogId (java.lang.Integer drawLogId) {
		this.drawLogId = drawLogId;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: MerchantId
	 */
	public java.lang.String getMerchantId () {
		return merchantId;
	}

	/**
	 * Set the value related to the column: MerchantId
	 * @param merchantId the MerchantId value
	 */
	public void setMerchantId (java.lang.String merchantId) {
		this.merchantId = merchantId;
	}



	/**
	 * Return the value associated with the column: PatchId
	 */
	public java.lang.String getPatchId () {
		return patchId;
	}

	/**
	 * Set the value related to the column: PatchId
	 * @param patchId the PatchId value
	 */
	public void setPatchId (java.lang.String patchId) {
		this.patchId = patchId;
	}



	/**
	 * Return the value associated with the column: TotalTimes
	 */
	public java.lang.Integer getTotalTimes () {
		return totalTimes;
	}

	/**
	 * Set the value related to the column: TotalTimes
	 * @param totalTimes the TotalTimes value
	 */
	public void setTotalTimes (java.lang.Integer totalTimes) {
		this.totalTimes = totalTimes;
	}



	/**
	 * Return the value associated with the column: TotalMoney
	 */
	public java.lang.Integer getTotalMoney () {
		return totalMoney;
	}

	/**
	 * Set the value related to the column: TotalMoney
	 * @param totalMoney the TotalMoney value
	 */
	public void setTotalMoney (java.lang.Integer totalMoney) {
		this.totalMoney = totalMoney;
	}



	/**
	 * Return the value associated with the column: TotalFee
	 */
	public java.lang.Integer getTotalFee () {
		return totalFee;
	}

	/**
	 * Set the value related to the column: TotalFee
	 * @param totalFee the TotalFee value
	 */
	public void setTotalFee (java.lang.Integer totalFee) {
		this.totalFee = totalFee;
	}



	/**
	 * Return the value associated with the column: PayTime
	 */
	public java.lang.String getPayTime () {
		return payTime;
	}

	/**
	 * Set the value related to the column: PayTime
	 * @param payTime the PayTime value
	 */
	public void setPayTime (java.lang.String payTime) {
		this.payTime = payTime;
	}



	/**
	 * Return the value associated with the column: IsSure
	 */
	public java.lang.Integer getIsSure () {
		return isSure;
	}

	/**
	 * Set the value related to the column: IsSure
	 * @param isSure the IsSure value
	 */
	public void setIsSure (java.lang.Integer isSure) {
		this.isSure = isSure;
	}



	/**
	 * Return the value associated with the column: SuccTimes
	 */
	public java.lang.Integer getSuccTimes () {
		return succTimes;
	}

	/**
	 * Set the value related to the column: SuccTimes
	 * @param succTimes the SuccTimes value
	 */
	public void setSuccTimes (java.lang.Integer succTimes) {
		this.succTimes = succTimes;
	}



	/**
	 * Return the value associated with the column: SuccMoney
	 */
	public java.lang.Integer getSuccMoney () {
		return succMoney;
	}

	/**
	 * Set the value related to the column: SuccMoney
	 * @param succMoney the SuccMoney value
	 */
	public void setSuccMoney (java.lang.Integer succMoney) {
		this.succMoney = succMoney;
	}



	/**
	 * Return the value associated with the column: FaildTimes
	 */
	public java.lang.Integer getFaildTimes () {
		return faildTimes;
	}

	/**
	 * Set the value related to the column: FaildTimes
	 * @param faildTimes the FaildTimes value
	 */
	public void setFaildTimes (java.lang.Integer faildTimes) {
		this.faildTimes = faildTimes;
	}



	/**
	 * Return the value associated with the column: FaildMoney
	 */
	public java.lang.Integer getFaildMoney () {
		return faildMoney;
	}

	/**
	 * Set the value related to the column: FaildMoney
	 * @param faildMoney the FaildMoney value
	 */
	public void setFaildMoney (java.lang.Integer faildMoney) {
		this.faildMoney = faildMoney;
	}



	/**
	 * Return the value associated with the column: Operator
	 */
	public java.lang.String getOperator () {
		return operator;
	}

	/**
	 * Set the value related to the column: Operator
	 * @param operator the Operator value
	 */
	public void setOperator (java.lang.String operator) {
		this.operator = operator;
	}



	/**
	 * Return the value associated with the column: OperateTime
	 */
	public java.util.Date getOperateTime () {
		return operateTime;
	}

	/**
	 * Set the value related to the column: OperateTime
	 * @param operateTime the OperateTime value
	 */
	public void setOperateTime (java.util.Date operateTime) {
		this.operateTime = operateTime;
	}



	/**
	 * Return the value associated with the column: fileState
	 */
	public java.lang.Integer getFileState () {
		return fileState;
	}

	/**
	 * Set the value related to the column: fileState
	 * @param fileState the fileState value
	 */
	public void setFileState (java.lang.Integer fileState) {
		this.fileState = fileState;
	}



	/**
	 * Return the value associated with the column: fileDesc
	 */
	public java.lang.String getFileDesc () {
		return fileDesc;
	}

	/**
	 * Set the value related to the column: fileDesc
	 * @param fileDesc the fileDesc value
	 */
	public void setFileDesc (java.lang.String fileDesc) {
		this.fileDesc = fileDesc;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteFrontDrawLog)) return false;
		else {
			AnteFrontDrawLog anteFrontDrawLog = (AnteFrontDrawLog) obj;
			if (null == this.getDrawLogId() || null == anteFrontDrawLog.getDrawLogId()) return false;
			else return (this.getDrawLogId().equals(anteFrontDrawLog.getDrawLogId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getDrawLogId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getDrawLogId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}

	public String getFileName()
	{
		return fileName;
	}

	public void setFileName(String fileName)
	{
		this.fileName = fileName;
	}


}